
import axios from 'axios'
// import { Loading } from 'element-ui'
import config from '../utils/config'
// import { getTokenInfo } from '../utils/publicFun'
// let loadingRequestCount = 0
// 创建axios实例
let baseUrl = config.BASE_URL
const service = axios.create({
  baseURL: baseUrl,
  timeout: 150000 // 请求超时时间
})
// request拦截器
service.interceptors.request.use(
  config => {

    return config
  },
  error => {
    console.log(error)
    Promise.reject(error)
  }
)

export default service
